package com.duruikang.LeaveAPI.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author Drik
 * @date 2021-12-17 15:17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("leaving")
public class Leaving implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 请假单id
     */
    @TableId("leaving_id")
    private String leavingId;
    /**
     * 请假单编号
     */
    @TableField("leaving_code")
    private String leavingCode;
    /**
     * 请假学生id
     */
    @TableField("student_id")
    private String studentId;
    /**
     * 请假缘由
     */
    @TableField("leaving_reason")
    private Integer leavingReason;
    /**
     * 请假类型（小于十天或大于十天）
     */
    @TableField("leaving_type")
    private Integer leavingType;
    /**
     * 前往目的地
     */
    @TableField("leaving_destination")
    private String leavingDestination;
    /**
     * 请假详细理由
     */
    @TableField("leaving_detail")
    private String leavingDetail;
    /**
     * 请假单提交时间
     */
    @TableField("leaving_date")
    private LocalDate leavingDate;
    /**
     * 请假开始时间
     */
    @TableField("leaving_start")
    private LocalDate leavingStart;
    /**
     * 请假结束时间
     */
    @TableField("leaving_end")
    private LocalDate leavingEnd;
    /**
     * 请假单状态
     */
    @TableField("leaving_state")
    private Integer leavingState;
}
